import request from '@/utils/request'

// 查询代理门店信息列表
export function listStore(query) {
  return request({
    url: '/system/agent/store/list',
    method: 'get',
    params: query
  })
}

// 新增代理门店信息
export function addStore(data) {
  return request({
    url: '/system/agent/store/add',
    method: 'post',
    data: data
  })
}

// 修改代理门店信息
export function updateStore(data) {
  return request({
    url: '/system/agent/store/update',
    method: 'put',
    data: data
  })
}

// 删除代理门店信息
export function delStore(id) {
  return request({
    url: '/system/agent/store/deleteById/' + id,
    method: 'delete'
  })
}

// 导出代理门店信息
export function exportStore(query) {
  return request({
    url: '/system/agent/store/export',
    method: 'get',
    params: query
  })
}
